package com.b2b.service.impl;

import com.b2b.mapper.ContractMapper;
import com.b2b.model.ContractDto;
import com.b2b.model.entity.Contract;
import com.b2b.service.ContractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ContractServiceImpl extends BaseServiceImpl<Contract> implements ContractService {
    private final ContractMapper contractMapper;
    @Autowired
    public ContractServiceImpl(ContractMapper contractMapper){
        this.contractMapper = contractMapper;
    }
    public List<Contract> selectMyContractByCompanyId(Integer companyId){
        return contractMapper.selectMyContractByCompanyId(companyId);
    }
}
